package com.wcl.demo.ui.activity;

import android.app.Activity;
import android.support.annotation.NonNull;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * Created by dllo on 15/11/17.
 */
public class ActivityControl {
    private static final Map<String,Activity> activityMap=new HashMap<String, Activity>();

    public static void addActivity(String key,Activity activity){
        activityMap.put(key,activity);
    }
    public static boolean removeActivity(String key){
        Activity activity=activityMap.remove(key);
        if(activity!=null){
            return  true;
        }
        return  false;
    }
}
